package com.indexingsystem.boss.entity;

import java.io.Serializable;

public class Games implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3211744076033056370L;

	private String resId;

	private String frontCover;

	private String gamesType;

	private Double gamesSize;

	private String fileType;

	private String description;
	
	private String sourcePath;

	public String getResId() {
		return resId;
	}

	public void setResId(String resId) {
		this.resId = resId == null ? null : resId.trim();
	}

	public String getFrontCover() {
		return frontCover;
	}

	public void setFrontCover(String frontCover) {
		this.frontCover = frontCover == null ? null : frontCover.trim();
	}

	public String getGamesType() {
		return gamesType;
	}

	public void setGamesType(String gamesType) {
		this.gamesType = gamesType == null ? null : gamesType.trim();
	}

	public Double getGamesSize() {
		return gamesSize;
	}

	public void setGamesSize(Double gamesSize) {
		this.gamesSize = gamesSize;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType == null ? null : fileType.trim();
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description == null ? null : description.trim();
	}
	

	public String getSourcePath() {
		return sourcePath;
	}

	public void setSourcePath(String sourcePath) {
		this.sourcePath = sourcePath;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((fileType == null) ? 0 : fileType.hashCode());
		result = prime * result + ((frontCover == null) ? 0 : frontCover.hashCode());
		result = prime * result + ((gamesSize == null) ? 0 : gamesSize.hashCode());
		result = prime * result + ((gamesType == null) ? 0 : gamesType.hashCode());
		result = prime * result + ((resId == null) ? 0 : resId.hashCode());
		result = prime * result + ((sourcePath == null) ? 0 : sourcePath.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Games other = (Games) obj;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (fileType == null) {
			if (other.fileType != null)
				return false;
		} else if (!fileType.equals(other.fileType))
			return false;
		if (frontCover == null) {
			if (other.frontCover != null)
				return false;
		} else if (!frontCover.equals(other.frontCover))
			return false;
		if (gamesSize == null) {
			if (other.gamesSize != null)
				return false;
		} else if (!gamesSize.equals(other.gamesSize))
			return false;
		if (gamesType == null) {
			if (other.gamesType != null)
				return false;
		} else if (!gamesType.equals(other.gamesType))
			return false;
		if (resId == null) {
			if (other.resId != null)
				return false;
		} else if (!resId.equals(other.resId))
			return false;
		if (sourcePath == null) {
			if (other.sourcePath != null)
				return false;
		} else if (!sourcePath.equals(other.sourcePath))
			return false;
		return true;
	}

	public Games() {
		super();
	}

	public Games(String resId, String frontCover, String gamesType, Double gamesSize, String fileType,
			String description, String sourcePath) {
		super();
		this.resId = resId;
		this.frontCover = frontCover;
		this.gamesType = gamesType;
		this.gamesSize = gamesSize;
		this.fileType = fileType;
		this.description = description;
		this.sourcePath = sourcePath;
	}

	@Override
	public String toString() {
		return "Games [resId=" + resId + ", frontCover=" + frontCover + ", gamesType=" + gamesType + ", gamesSize="
				+ gamesSize + ", fileType=" + fileType + ", description=" + description + ", sourcePath=" + sourcePath
				+ "]";
	}

	
}